/**
 * 
 */
package com.tdkj.action.front.mall.shop;

import java.util.List;
import javax.annotation.Resource;
import com.tdkj.action.BaseAction;
import com.tdkj.model.common.BeanType;
import com.tdkj.service.common.IBeanTypeService;

/**
 * @author yninfo
 */
public class InnerTypeAction extends BaseAction {
	
	private Long id ;
	
	private BeanType innerType;
	
	private IBeanTypeService typeService;
	
	private List<BeanType> innerTypes;
	
	public String execute(){
		String rootName = IBeanTypeService.Constants.getShopGoodTypeRoot(id);
		innerTypes = typeService.getRoot(rootName).getChildren();
		return "success";
	}
	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public BeanType getInnerType() {
		return innerType;
	}

	public void setInnerType(BeanType innerType) {
		this.innerType = innerType;
	}

	public List<BeanType> getInnerTypes() {
		return innerTypes;
	}

	public void setInnerTypes(List<BeanType> innerTypes) {
		this.innerTypes = innerTypes;
	}

	@Resource
	public void setTypeService(IBeanTypeService typeService) {
		this.typeService = typeService;
	}

	
	
}
